import request from "@/utils/request";
import pathname from "./pathname";

export function getObjectionList(data) {
  return request({
    url: pathname.getObjectionList,
    method: "post",
    data,
    _hasLoading: false
  });
}

export function getYearObjectionList(data) {
  return request({
    url: pathname.getYearObjectionList,
    method: "post",
    data,
    _hasLoading: false
  });
}

export function getObjectionResultList(data) {
  return request({
    url: pathname.getObjectionResultList,
    method: "post",
    data,
    _hasLoading: false
  });
}

export function getAddReportDetail(id) {
  return request({
    url: pathname.getAddReportDetail.replace(/{id}/g, id),
    method: "post",
    _hasLoading: true
  });
}

export function objectionUpdateResult(data) {
  return request({
    url: pathname.objectionUpdateResult,
    method: "post",
    data,
    _hasLoading: true
  });
}
